package com.qf.ceshi0616.category.mapper;

import com.qf.ceshi0616.category.entity.Category;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 商品分类 Mapper 接口
 * </p>
 *
 * @author uniq7xi
 * @since 2023-06-16
 */
@Mapper
public interface CategoryMapper extends BaseMapper<Category> {
    @Select("select * from category where parent_id=#{parentId};")
    List<Category> selectCategoryByParentId(Integer parentId);
}
